﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="message_manager.aspx.cs" Inherits="WeiXinPF.Web.modules.cdrt.smart.message_manager" %>

<%@ Import Namespace="WeiXinPF.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>留言管理</title>
  <script type="text/javascript" src="/Content/jquery/jquery-1.12.1.min.js"></script>
  <script type="text/javascript" src="/Content/jquery/jquery.media.js"></script>
  <script type="text/javascript" src="/scripts/jquery/jquery.lazyload.min.js"></script>
  <script type="text/javascript" src="/Content/jquery/poptrox/jquery.poptrox.min.js"></script>
  <script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
  <script type="text/javascript" src="/admin/js/layout.js"></script>
  <link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
  <link href="/css/pagination.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
    .gallery {
      overflow: hidden;
    }

      .gallery a {
        display: block;
        float: left;
      }

        .gallery a img {
          display: block;
          border: 0;
        }

    .media {
      width: 10px;
      height: 10px;
    }
  </style>
  <script type="text/javascript">
    $(function () {
      $('.gallery').poptrox({
        usePopupCaption: true
      });
      $('.media').media();
    });

    function checkAll()
    {
        $(":checkbox").prop('checked',true);
    }
    
  </script>
</head>

<body class="mainbody">
  <form id="form1" runat="server">
    <!--导航栏-->
    <div class="location">
      <a class="home">
        <i></i>
        <span>留言列表</span>
      </a>
    </div>
    <!--/导航栏-->

    <!--工具栏-->
    <div class="toolbar-wrap">
      <div id="floatHead" class="toolbar">
        <div class="l-list">
          <ul class="icon-list">
            <li>
              <a class="all" href="javascript:;" onclick="checkAll();">
                <i></i>
                <span>全选</span>
              </a>
            </li>
            <li>
              <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="OnButtonDeleteClick">
                <i></i>
                <span>删除</span>
              </asp:LinkButton></li>
          </ul>
          <div class="menu-list">
            <div class="rule-single-select">
              <asp:DropDownList ID="ddlCategoryId" runat="server" AutoPostBack="True" OnSelectedIndexChanged="OnDropDownListCategorySelectedIndexChanged">
                  <asp:ListItem Text="全部" Value="0"></asp:ListItem>
                  <asp:ListItem Text="爆料" Value="1"></asp:ListItem>
                  <asp:ListItem Text="留言" Value="2"></asp:ListItem>
              </asp:DropDownList>
            </div>
          </div>
        </div>
        <div class="r-list">
          <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
          <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="OnButtonSearchClick">
            查询
          </asp:LinkButton>
        </div>
      </div>
    </div>
    <!--/工具栏-->

    <!--文字列表-->
    <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">
      <HeaderTemplate>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
          <tr>
            <th width="6%">选择</th>
            <th align="left" width="65">电话号码</th>
            <th align="left" width="15%">留言内容</th>
            <th align="left" width="15%">视频图片</th>
            <th align="left" width="15%">身份证号</th>
            <th align="left" width="10%">类型</th>
            <th align="left" width="10%">状态</th>
            <th width="15%">操作</th>
          </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr>
          <td align="center">
            <asp:CheckBox ID="chkId" CssClass="checkall"    runat="server" Style="vertical-align: middle;" />
            <asp:HiddenField ID="hidId" Value='<%#Eval("message_id")%>' runat="server" />
          </td>
          <td>
            <%# Eval("mobile") %>
          </td>
          <td>
            <%# Eval("content") %>
          </td>
         
          <td>
            <asp:Label Text='<%#Eval("file_path") %>' ID="RatingLabel" runat="server"></asp:Label>
          </td>
             <td>
            <%# Eval("idcard") %>
          </td>
               <td>
            <%# Eval("type_") %>
          </td>
           <td>
           <%# getstatus(DataBinder.Eval(Container.DataItem,"status").ToString())%>
          </td>
          <td align="center">
              <span style="display:<%# getdisplay(DataBinder.Eval(Container.DataItem,"status").ToString())%>">
                   <asp:LinkButton ID="lbtnPass" runat="server" CssClass="btn-search" CommandArgument='<%# Eval("message_id")%>' OnClick="btnPassClick">通过</asp:LinkButton>
                   <asp:LinkButton ID="lbtnUnPass" runat="server" CssClass="btn-search" CommandArgument='<%# Eval("message_id")%>'  OnClick="btnPassClick">不通过</asp:LinkButton>
              </span>
          </td>
        </tr>
      </ItemTemplate>
      <FooterTemplate>
        <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"6\">暂无记录</td></tr>" : ""%>
            </table>
      </FooterTemplate>
    </asp:Repeater>
    <!--/文字列表-->
    <!--内容底部-->
    <div class="line20"></div>
    <div class="pagelist">
      <div class="l-btns">
        <span>显示</span>
        <asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="OnTextBoxPageNumberTextChanged" AutoPostBack="True"></asp:TextBox>
        <span>条/页</span>
      </div>
      <div id="PageContent" runat="server" class="default"></div>
    </div>
    <!--/内容底部-->
  </form>
</body>
</html>
